package com.hotel.app.service;

import com.hotel.app.config.OpenFeignConfig;
import com.hotel.common.param.RenewRoomAdd;
import com.hotel.common.param.RoomOrderAdd;
import com.hotel.common.param.ShowMyRoom;
import com.hotel.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * --- 天道酬勤 ---
 *
 * @author TRC
 * @date 2024/6/17
 * @desc
 */
@FeignClient(value = "ht-room-server", configuration = OpenFeignConfig.class)
public interface HotelRoomFeign {

    /**
     * 展示房间列表
     * @param listType
     * @return
     */
    @RequestMapping("/hotel/room/show")
    public R showRoomList(@RequestParam("listType") String listType);

    @RequestMapping("/hotel/room/pay")
    public R payRoom(@RequestBody RoomOrderAdd roomOrderAdd);

    @RequestMapping("/hotel/room/showUserRoom")
    public R showMyRoomList(@RequestBody ShowMyRoom showMyRoom);

    @RequestMapping("/hotel/room/renew")
    public R renewRoom(@RequestBody RenewRoomAdd renewRoomAdd);

    @RequestMapping("/hotel/room/rate")
    public R showRoomRate();
}
